#ifndef __CBB_CAMERA_COMM_H__
#define __CBB_CAMERA_COMM_H__

#include "cbb_type.h"
#include <sys/time.h>
#if defined (__cplusplus) || defined (c_plusplus)
extern "C" {
#endif
#define DATA_SIZE_2M            (2097152)
#define CAMERA_RAW_MAX_LEN       (DATA_SIZE_2M * 2)

typedef enum {
	CBB_CAMERA_START = 0,
	CBB_CAMERA_STOP = 1,
}CbbCameraStatE_t;
typedef enum {
	CBB_CAMERA_ACK_OK = 0,
	CBB_CAMERA_ACK_ERROR = -2000,
}CbbCameraAckE_t;//摄像头相关应答
typedef struct {
	struct timeval		timestamp;
	void *data_addr;//帧数据地址，内部管控
	hd_u32_t len;//数据帧data的实际长度
	hd_u32_t index; //缓冲区索引
}CbbCameraFrame_t;//!摄像头原始帧数据结构


#if defined (__cplusplus) || defined (c_plusplus)
}
#endif

#endif // __CBB_CAMERA_COMM_H